#include "GlutCallbacks.h"
#include "VirtualPianoApp.h"


VirtualPianoApp* g_controller;


void g_reshapeFunc (int x, int y)
{
	g_controller->reshapeFunc (x, y);
}

void g_displayFunc ()
{
	g_controller->displayFunc ();
}

void g_idleFunc ()
{
	g_controller->idleFunc ();
}

void g_mouseFunc (int button, int state, int x, int y)
{
	g_controller->mouseFunc (button, state, x, y);
}

void g_motionFunc (int x, int y)
{
	g_controller->motionFunc (x, y);
}

void g_keyboardFunc (unsigned char key, int x, int y)
{
	g_controller->keyboardFunc (key, x, y);
}

void g_specialFunc (int key, int x, int y)
{
	g_controller->specialFunc (key, x, y);
}

void g_timerFunc (int interval)
{
	g_controller->timerFunc ();
	glutTimerFunc ((unsigned int)interval, g_timerFunc, interval);
}